<div id="banner">
    <?php if ($data['type']) { ?>
        <div id="featured">
            <?php
            foreach ($data['img'] as $value) {
                echo '<img  alt="' . $lan['pack_tit'] . '" src="' . URL . 'public/banner/' . $value . '" width="1125" height="365"/>';
            }
            ?>
        </div>
    <?php } else { ?>
        <style type="text/css">
            #banner{
                background: #5B9F14;
                height: 300px;
            }
        </style>
        <img alt="" src="<?php echo URL . 'public/def_banner.jpg' ?>" />
    <?php } ?>
</div><!--END banner-->

